import request from '@/utils/request'
//中仓订单列表
export function getSaleOrderList(data) {
    return request({
        url: '/api/sale/getSaleOrderList',
        method: 'post',
        data
    })
}
//中仓订单详情
export function getSaleOrderInfo(data) {
    return request({
        url: '/api/sale/getSaleOrderInfo',
        method: 'post',
        data
    })
}

//审核中仓订单
export function checkSaleOrder(data) {
    return request({
        url: '/api/sale/checkSaleOrder',
        method: 'post',
        data
    })
}

//中仓删除订单
export function delSaleOrder(data) {
    return request({
        url: '/api/sale/delSaleOrder',
        method: 'post',
        data
    })
}

//中仓编辑订单
export function editSaleOrder(data) {
    return request({
        url: '/api/sale/editSaleOrder',
        method: 'post',
        data
    })
}

//中仓添加订单
export function addSaleOrder(data) {
    return request({
        url: '/api/sale/addSaleOrder',
        method: 'post',
        data
    })
}

//中仓客户接口
export function getOrgData(data) {
    return request({
        url: '/api/org/getOrgData',
        method: 'post',
        data
    })
}
//中仓客户接口(新)
export function getOpenOrgData(data) {
    return request({
        url: '/api/org/getOpenOrgData',
        method: 'post',
        data
    })
}

//中仓客户接口
export function selectGoodsBatch(data) {
    return request({
        url: '/api/sale/selectGoodsBatch',
        method: 'post',
        data
    })
}
//添加退货单（中仓自建）
export function add(data) {
    return request({
        url: '/api/Refundnew/add',
        method: 'post',
        data
    })
}
//退货单详情（中仓自建）
export function details(data) {
    return request({
        url: '/api/Refundnew/details',
        method: 'post',
        data
    })
}
//退货单编辑（中仓自建）
export function updata(data) {
    return request({
        url: '/api/Refundnew/updata',
        method: 'post',
        data
    })
}